
 goumai();
 //var currentPage=1;
 function goumai(){
		  $("#chuchuang").html("");
		$.ajax({
             url:urlcore + "/api/incrementService/selectWindowList",
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					$.each(data.data.list, function(y,m) {
						var chuchuang='<li class="clearfix">'+
'			<dl>'+
'				<dt>'+
'					<img src="../images/zengzhi01.png">'+
'				</dt>'+
'				<dd>'+
'					<h2>'+m.title+'</h2>'+
'					<h6>有效期：'+m.validityTime+'天</h6>'+
'				</dd>'+
'			</dl>'+
'			<a href="../12.2.0zhifu_zengzhi.html?cid='+m.id+'">&yen;'+m.price+'</a>'+
'		</li>';
						    $("#chuchuang").append(chuchuang);
					});
				} else if(data.code == 'OVERTIME') {
					var thisUrl = window.location.href;
					//alert(thisUrl);
					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
						top.window.location.href = "../1.0.0denglu.html";
					}
				} else {
					if(data.msg != '空数据') {
						alert(data.msg)
					} else {
						$('#thiscount').text(0);
					}
				}

			},
			error: function() {
				alert("error");
			}
		});


 }

